#include <vector>
#include <iostream>

using namespace std;

int main()
{
    vector<int> vec = {4515, 4547, 2124, 578, 1547};
    const vector<int> cs_vec = {544, 5478, 1477, 274, 7826};
    vector<int>::iterator iter;
    vector<int>::const_iterator cs_iter;

    for (iter = vec.begin(); iter != vec.end(); iter++)
        cin >> *iter;

    for (iter = vec.begin(); iter != vec.end(); iter++)
        cout << *iter << " ";
    cout << endl;

    for (cs_iter = cs_vec.begin(); cs_iter != cs_vec.end(); cs_iter++)
        cout << *cs_iter << " ";

    return 0;
}